package com.longan.sys.controller;

import com.longan.common.utils.AjaxResult;
import com.longan.sys.domain.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys")
public class UserController {

    @GetMapping("userinfo")
    public AjaxResult getUserInfo(){
        User user = new User();
        user.setUserName("周子龙");
        return AjaxResult.success(user);
    }
}
